﻿using UnityEngine;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Blo
{
    public class DictTipWordBlo : MonoBehaviour
    {
        public static string GetRandomTip()
        {
            var list = Dict.DictDataManager.Instance.tableTipWordDao.CacheList;
            if(list == null)
            {
                return LanguageTool.GetTextNoUpdate(1001);
            }
            return list[Random.Range(0,list.Count)].word;
        }
    }
}